<?php
namespace app\common\model;

use think\Model;

class Param extends Model
{
    public function findParam(array $where=[], $fields="")
    {
        return $this->where($where)->field($fields)->find();
    }

    public function valueParam($field, array $where=[])
    {
        return $this->where($where)->value($field);
    }

    public function updateParam(array $data, array $where) {
        return $this->where($where)->update($data);
    }
}